# Constants.coffee
# 系统常量表.
#
# @description :: TODO: You might write a short summary of how this model works and what it represents here.
# @docs        :: http://sailsjs.org/documentation/concepts/models-and-orm/models

module.exports =

  page:
    title: '系统常量'

  attributes:
#常量key
    cKey:
      type: 'string'
      page:
        type: 'text'
        desc: '常量Key'
        tip: '别名' #placeholder
        filter: 'EQ'
        sortAble: true #允许排序
        validate:
          require: true
    cCode:
      type: 'string'
      page:
        type: 'text'
        desc: '常量Key编码'
        tip: '英文，建议使用首字母' #placeholder
        filter: 'EQ'
        sortAble: true #允许排序
        validate:
          require: true
#常量value
    cValue:
      type: 'string'
      page:
        type: 'text'
        desc: '常量value'
        filter: 'EQ'
        validate:
          require: true
    isUsing:
      type: 'boolean'
      defaultsTo: true
